package main

import (
	v1 "echoapi/app/api/v1"
	v2 "echoapi/app/api/v2"
	"echoapi/app/middleware"
	"echoapi/boot"
)

func main() {
	/*e := echo.New()

	e.Use(middleware.Logger())
	e.Use(middleware.Recover())

	router.InitRoute(e)
	e.Logger.Fatal(e.Start(":1123"))*/

	boot.Fighting().
		//DB(boot.NewGormAdapter()).
		Attach(middleware.NewAuthMiddleware()).
		Action("/v1",
			v1.NewIndexController(),
			v1.NewUserController(),
		).
		Action("/v2",
			v2.NewIndexController(),
			v2.NewUserController(),
			v2.NewNewsController(),
		).
		Running(":1123")

}
